using Codeflows.Results;
using Codeflows.Tracking;

namespace Codeflows.Dispatch.ResultHandlers
{
    class JumpHandler : ResultHandler<JumpResult>
    {        
        protected override void Handle(CodeflowInstance instance, JumpResult result)
        {
            instance.Jump(result.Action, result.Arguments);
        }

        public override bool CanContinueDispatchLoop
        {
            get { return true; }
        }
    }
}